// mock.js 和 better-mock 区别： 前者get、post必须小写，后者不区分。
import Mock from "better-mock/dist/mock.mp"
 
// 定义模拟数据
const data = Mock.mock({
	idexData:{
		// 'items|30': [{
		//   id: '@id',
		//   name: '@name',
		//   'age|18-30': 1
		// }]
		"bigPromotionModule":{backgroundUrl:"","floorlist|4":[{}],backgroundColor:"1674e3"},
		"categoryHotsellModule":{titleTargetUrl:"","categoryList|10":[{}],title:'类目日销榜'},
		"categoryModule|3":[{}],
		"flashSalelbdule":{activityprice:199, primarypicUrl:"https://yanxuan-item.nosdn.127.net/a5486fc786b49e82cb3fc65686ba89f6.png",},
		"focuslist|8":[{}],
		"freshmanFlag":true,
		"indexActivityModule":[{}],
		"kingKongModule:":{norColor:"ff000000",selectedcolor:"fffffff",background:""},
		"newItemlist|8":[{}],
		"policyDesclist|3":[{}],
		"scenelightShoppingGuideModule|4":[{}],
		"taglist|4":[{}],
	}
})
 
// 模拟接口
Mock.mock(/\/mock\/getIndexData/, 'GET', () => {
  return {
    status: 200,
    idexData: data.idexData
  }
})